package net.hserver.admin.system.common;

import cn.hserver.plugin.web.annotation.Controller;
import cn.hserver.plugin.web.annotation.GET;
import cn.hserver.plugin.web.annotation.RequestMapping;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Controller
public class MyErrorController  {
    @RequestMapping("/error")
    public MyResult handleError() {
        // 获取异常信息
        return MyCode.NO_HANDLER_FOUND.toResult();
    }

    /**
     * 默认进入接口文档
     */
    @GET("/")
    public String doc() {
      return "hello";
    }
}
